<!-- toaster directive -->
<toaster-container toaster-options="{'position-class': 'toast-top-right', 'close-button':true}"></toaster-container>
<!-- / toaster directive -->

<!-- 导航条 -->
<div class="bg-white bread-crumb">
    <ul class="breadcrumb b-a m-b-n-xs lter b-b wrapper-md">
        <li><a ui-sref="main"><i class="glyphicon glyphicon-cog"></i> 系统管理</a></li>
        <li><a ui-sref="main.sys.dic.list" class="active">字典管理</a></li>
        <li class="active" ng-bind="title"></li>
    </ul>
</div>
<div ng-show="loading" class="text-center m-t-md text-lg dataWarn"><i class="fa fa-spin fa-spinner"></i> 数据加载中...</div>
<!-- 内容区域 -->
<div class="wrapper-md content">
    <div class="panel panel-default">
        <!-- 头部 -->
        <div class="panel-heading ">
            <span>{{title}}</span>
            <a class="btn btn-sm btn-icon btn-rounded btn-default pull-right m-t-n-xs" ui-sref="main.sys.dic.list">
                <i class="text-md glyphicon glyphicon-chevron-up text-muted"></i>
            </a>
        </div>
        <!--表单-->
            <div class="panel-body">
                <form class="form-horizontal"  name="user_form">
                    
                    <div class="form-group">
                        <label for="type_" class="col-lg-1 control-label text-right"><span class="text-danger wrapper-sm">*</span>类型：</label>
                        <div class="col-lg-4">
                            <input type="text" class="form-control" ng-model="record.type_"
                             name="type_" id="type_" validator="required">
                        </div>
                    </div>
                    
                    <div class="form-group">
                        <label for="code_text" class="col-lg-1 control-label text-right"><span class="text-danger wrapper-sm">*</span>字典名称：</label>
                        <div class="col-lg-4">
                            <input type="text" class="form-control" ng-model="record.code_text" 
                            name="code_text" id="code_text" validator="required">
                        </div>
                    </div>

                    <div class="line line-dashed b-b line-lg pull-in"></div>
                    
                    <div class="form-group">
                        <label for="code_" class="col-lg-1 control-label text-right"><span class="text-danger wrapper-sm">*</span>关键字：</label>
                        <div class="col-lg-4">
                            <input type="text" class="form-control" ng-model="record.code_" 
                            name="code_"id="code_" validator="required">
                        </div>
                    </div>
                    
                    <div class="form-group">
                        <label for="parent_code" class="col-lg-1 control-label text-right">父关键字：</label>
                        <div class="col-lg-4">
                            <input type="text" class="form-control" ng-model="record.parent_code" 
                            name="parent_code" id="parent_code">
                        </div>
                    </div>
                    
                    <div class="line line-dashed b-b line-lg pull-in"></div>
                    
                    <div class="form-group">
                        <label for="sort_no" class="col-lg-1 control-label text-right">排序号：</label>
                        <div class="col-lg-4">
                            <input type="text" class="form-control" ng-model="record.sort_no" 
                            name="sort_no" id="sort_no">
                        </div>
                    </div>
                    
                    <div class="form-group">
                        <label for="remark_" class="col-lg-1 control-label text-right">字典说明：</label>
                        <div class="col-lg-4">
                            <input type="text" class="form-control" ng-model="record.remark_" 
                            name="remark_" id="remark_">
                        </div>
                    </div>
                    
                    <div class="line line-dashed b-b line-lg pull-in"></div>
                    
                    <div class="form-group" style="width: 100%">
                        <div class="col-sm-6 col-sm-offset-2 text-center"
                            style="width: 100%;margin: 0;padding: 0;text-align: center">
                            <button type="button" class="btn  w-xs addNew" ng-show="reset" ng-click="resetFrom()">重置</button>
                            <button type="submit" class="btn btn-info w-xs m-l-xl addNew"
                                ng-disabled="isDisabled">保存
                            </button>
                        </div>
                    </div>
                    
                </form>
            </div>
    </div>
</div>

<style scoped>
    .app-content-body .content{
        margin-top:44px;
    }
    .form-group{width:50%;float: left;}
    .form-group label{ width:20%;}
    .form-group .col-lg-4{width:65%;}

</style>